import request from '@/utils/request'

/**
 * 获取个人任务详情
 * @param {String} id 任务ID
 * @returns {Promise}
 */
export function getPersonalTaskDetail(id) {
  return request({
    url: `/api/example/WorkPersonJob/sspGetOne?id=${id}`,
    method: 'post'
  })
}

/**
 * 获取协同任务列表
 * @param {String} taskNum 任务编号
 * @returns {Promise}
 */
export function getCollaborativeTaskList(taskNum) {
  return request({
    url: `/api/example/WorkPersonJob/getInfoByTaskNum?taskNum=${taskNum}`,
    method: 'post'
  })
}

/**
 * 获取任务附件
 * @param {String} id 任务ID
 * @returns {Promise}
 */
export function getTaskAttachments(id) {
  return request({
    url: `/api/example/WorkPersonJob/sspGetOne?id=${id}`,
    method: 'post'
  })
}
